package com.bestbuy.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * @author ThanhNgo
 *
 */
@Entity
@Table(name = "account_info")
public class AccountInfo implements Serializable {

	@Id
    @Column(name="IDACCOUNT_INFO")
    @GeneratedValue
	private Integer idAccountInfo;
	
	@Column(name="IDACCOUNT")
	private Integer idAccount;
	
	@Column(name="BIRTHDAY")
	private Date birthday;
	
	@Column(name="SEX")
	private String sex;
	
	@Column(name="EMAIL")
	private String email;
	
	@Column(name="ADDRESS")
	private String address;
	
	@Column(name="PHONE")
	private String phone;
	
	@Column(name="ISDELETED")
	private Integer isDeleted;
	
	@OneToOne  
	@PrimaryKeyJoinColumn  
	private Account account;
}
